package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(50)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type After struct {
	gorm.Model
	Afters_types string `gorm:"type:varchar(50)"`
	After_name   string `gorm:"type:varchar(50)"`
}
type Order struct {
	gorm.Model
	Aid          int    `gorm:"type:int"`
	From_address string `gorm:"type:varchar(50)"`
	To_address   string `gorm:"type:varchar(50)"`
}
type OrderList struct {
	Oid          int
	From_address string
	To_address   string
	Afters_types string
	After_name   string
}
